<html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="Robots" content="all">
<meta name="author" content="">
<link rel="shortcut icon" type="image/x-icon" href="/study/favicon.ico"> 
<link type="text/css" rel="stylesheet" href="/study/styles/bright/common/css/da.css">
<link type="text/css" rel="stylesheet" href="/study/styles/bright/common/css/common.css">
<script src="//hm.baidu.com/hm.js?a64a2a4c2491fffd9b6e07ce6e6974db"></script><script type="text/javascript" async="" src="http://www.google-analytics.com/analytics.js"></script><script id="sozz" src="http://js.passport.qihucdn.com/11.0.1.js?6fed875f8b6f9ae5665bd13cc6c98c53"></script><script async="" src="//www.googletagmanager.com/gtm.js?id=GTM-MCZXBD"></script><script src="//hm.baidu.com/hm.js?a64a2a4c2491fffd9b6e07ce6e6974db"></script><script async="" src="http://assets.growingio.com/2.1/gio.js"></script><script async="" src="http://ga.dongao.cn/precision/dongaodata.full.js"></script><script src="/study/js/new/common/js/jquery.min.js"></script>
<script src="/study/js/new/common/js/cookie.js"></script>
<script src="/study/js/new/common/js/da.js"></script>
<script src="/study/js/new/common/js/common.js"></script>
<script src="/study/js/new/common/js/guide.js"></script>
 <script type="text/javascript" src="//ga.dongao.cn/www.js"></script>
<title>我的课程</title>
<script type="text/javascript">
var topShowType = '';
var topSign='66a33fd387e63616c22c3eaa115042cf';
var leftShowType = '';
var leftSign='b75fac3d26413f4406c77c4bab83a197';
$(document).ready(function(){
	//待美化
	var msg="";
  	if(msg!=""){
  		var _box = new da.comp.popup({
            boxSize: {width: 347},
            title: '温馨提示'
        }),
        _html = $('<div></div>', {
            'class': '',
            html: $('<div></div>', {
                'class': 'tip-box-content',
                html: [
                    '<p class="tip-box-p" style="text-align: center">'+msg+'</p>',
                    '<div class="tip-box-btn">确认</div>'
                ]
            })
        });
	    _box.show(_html,function (html) {
			html.find('.tip-box-btn').on({
				click:function () {
					_box.hide();
				}
			});
		});
  		return false;
  	 }
  	var msg="";
  	if(msg!=""){
  		var _box = new da.comp.popup({
            boxSize: {width: 347},
            title: '温馨提示'
        }),
        _html = $('<div></div>', {
            'class': '',
            html: $('<div></div>', {
                'class': 'tip-box-content',
                html: [
                    '<p class="tip-box-p" style="text-align: center">'+msg+'</p>',
                    '<div class="tip-box-btn">确认</div>'
                ]
            })
        });
	    _box.show(_html,function (html) {
			html.find('.tip-box-btn').on({
				click:function () {
					_box.hide();
				}
			});
		});
  	 }
});
function toShowFeedback(){
	var _box = new da.comp.popup({
        boxSize:{width:522,height:365},
        title:'反馈意见'
    }),
    _html = $('<div></div>',{
        'class':'',
        html:$('<div></div>',{
            'class':'tip-box-content',
            html:[
                '<textarea placeholder="请输入宝贵意见" id="SugRemark" style="height:200px"></textarea>',
                '<div class="tip-box-btn">提交</div>'
            ]
        })
    });
	_box.show(_html);
 	$(".tip-box-btn").click(function(){
 		var pageContext = $("#pageContext").val();
    	var remark = $("#SugRemark").val().replace(/(^\s*)|(\s*$)/g, "");
    	if(remark.length>200){
    		var _box1 = new da.comp.popup({
                boxSize: {width: 347},
                title: '温馨提示'
            }),
            _html = $('<div></div>', {
                'class': '',
                html: $('<div></div>', {
                    'class': 'tip-box-content',
                    html: [
                        '<p class="tip-box-p" style="text-align: center">字数不能超过200个！</p>',
                        '<div class="tip-box-btn">确认</div>'
                    ]
                })
            });
	        _box1.show(_html,function (html) {
				html.find('.tip-box-btn').on({
					click:function () {
						_box1.hide();
						$("#SugRemark").focus();
					}
				});
			});
    		return false;
    	}
    	if(remark.length==0 || remark == null ||remark == ""){
    		var _box1 = new da.comp.popup({
                boxSize: {width: 347},
                title: '温馨提示'
            }),
            _html = $('<div></div>', {
                'class': '',
                html: $('<div></div>', {
                    'class': 'tip-box-content',
                    html: [
                        '<p class="tip-box-p" style="text-align: center">反馈意见不能为空！</p>',
                        '<div class="tip-box-btn">确认</div>'
                    ]
                })
            });
	        _box1.show(_html,function (html) {
				html.find('.tip-box-btn').on({
					click:function () {
						_box1.hide();
						$("#SugRemark").focus();
					}
				});
			});
    		return false;
    	}
    	$.ajax({
			type : "post",
			url : encodeURI(pageContext + "/index/subFeedback"),
			dataType : "json",
			data:{
				remark:remark
			},
			async: false,
			success : function(data) {
				if(data.flag == "true"){
					var _box1 = new da.comp.popup({
		                boxSize: {width: 347},
		                title: '温馨提示'
		            }),
		            _html = $('<div></div>', {
		                'class': '',
		                html: $('<div></div>', {
		                    'class': 'tip-box-content',
		                    html: [
		                        '<p class="tip-box-p" style="text-align: center">反馈意见提交成功！</p>',
		                        '<div class="tip-box-btn">确认</div>'
		                    ]
		                })
		            });
			        _box1.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								_box1.hide();
								_box.hide();
							}
						});
					});
				} else {
					var _box1 = new da.comp.popup({
		                boxSize: {width: 347},
		                title: '温馨提示'
		            }),
		            _html = $('<div></div>', {
		                'class': '',
		                html: $('<div></div>', {
		                    'class': 'tip-box-content',
		                    html: [
		                        '<p class="tip-box-p" style="text-align: center">反馈意见提交失败！</p>',
		                        '<div class="tip-box-btn">确认</div>'
		                    ]
		                })
		            });
			        _box1.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								_box1.hide();
							}
						});
					});
				}
				
			}
		});
    });

}
function logout(){
	$.ajax({
		type : "get",
		url : "/study/u/logoutCw",
		dataType:"json",
		async: false,
		success : function(data) {
			$.ajax({
				type : "post",
				url : data.url,
				dataType:"jsonp",
				success : function(d) {
					window.location='/study/u/logout';
				},
				error: function(e){
					window.location='/study/u/logout';
				}
			});
		},
		error: function(e){
			window.location='/study/u/logout';
		}
	});	
}

	//创建定时器
	var interval = setInterval(checkUser, 5000);
	clearInterval(interval);
	//获得焦点
	window.onfocus=function (){
		checkUser();
		clearInterval(interval);
	};
	//失去焦点
	window.onblur = function(){
		interval = setInterval(checkUser, 5000);
	};
	function checkUser(){
		var sessionUserId = '766336a337d341689d616d0465e9d233';//获取session中的useid
		var strcookie = document.cookie;//获取cookie字符串
		var arrcookie = strcookie.split("; ");//分割
		//遍历匹配
		for ( var i = 0; i < arrcookie.length; i++) {
			var arr = arrcookie[i].split("=");
			if (arr[0] == 'userId'){
				if(sessionUserId != null && arr[1] != null && sessionUserId != arr[1]){
					//window.location.reload();
					window.location='/study/index/index';
				}
			}
		}
	}
</script>
</head>
<body>
<div class="body-wrap ">
	<!--广告-->
    <div class="header">
    	 <a class="header-div" style="background-image: url('http://static.dongao.com/image/aff135ce2b7a434784c7d792ff30e3be.jpg')" href="http://practice.dongao.com/plan/2019-kjsx/" target="_blank"></a>
         <span class="close-a" style="right: 0px;"></span>
    </div>
    <!--顶部-->
    <div class="header-top">
        <div class="wrap clearfix">
            <div class="header-left fl">
                <a href="http://www.dongao.com" class="fl logo" target="_blank"></a><span class="slit fl"></span>
                <h1 class="header-tit fl">浙江省继续教育</h1>
            </div>
            <div class="header-right fr">
            	<div class="fl" style="margin:0px 30px"><a href="javascript:toShowFeedback()" class="fl help-center">反馈意见</a></div>
                <div class="fl"><a href="http://www.dongao.com/jxjy/gonggao/20160428174053_287637.shtml" class="fl help-center" target="_blank">帮助中心</a></div>
                <div class="download fl"><span>移动客户端下载</span>
                    <div class="download-qr clearfix">
                        <div class="qr-ios fl"><img src="http://static.dongao.com/images/erweima/ios.png" alt="">
                        <span>移动端下载</span></div>
                    </div>
                </div>
                <div class="user fl"><span>李日爱</span>
                    <ul class="user-ul">
                        <li><a href="javascript:logout()">退出登录</a></li>
                    </ul>
                    <i class="user-icon"></i>
                </div>
            </div>
        </div>
    </div>
<link type="text/css" rel="stylesheet" href="/study/styles/bright/learn/css/learn.css">
<style>
.table_div1 tbody tr td:nth-child(2){position:relative;}
.icon-bixue{position: absolute;width:32px;height:22px;background:url(/study/images/ico.png);left:0;top:0;}
</style>
<div class="wrap clearfix">
        <div class="main-left fl">
            <ul class="main-left-ul">
                <li>
                    <a href="/study/index/index"><i class="icon icon-home"></i>首页</a>
                </li>
                <li>
                    <a href="/study/u/buyCourse"><i class="icon icon-less"></i>购买课程</a>
                </li>
                <li class="active">
                    <a href="/study/u/myCourse"><i class="icon icon-study"></i>听课学习</a>
                </li>
                <li>
                    <a href="/study/order/order/toOrderList"><i class="icon icon-order"></i>我的订单</a>
                </li>
                <li>
                    <a href="/study/partnerPeriodOther/getPartnerPeriodOtherForRecord"><i class="icon icon-record"></i>通过记录</a>
                </li>
                
            </ul>
            <!--广告-->
            <div class="main-left-a">
            <a href="http://practice.dongao.com/plan/2019-hyfa/" target="_blank" class="main-a" style="left: 0px;"><img src="http://static.dongao.com/image/b1a6dff0b7b741f2989bfdb7bbca35b8.jpg" alt=""></a> <span class="main-close"></span>
            </div>
        </div>
 <input type="hidden" id="pageContext" value="/study">
  <div class="main-right fl">
            <div class="main-right-tit">
                最近听课记录<span>2019年度课程: <a onclick="watchCourseStart(18,2019,1857,false,false,'fromLast',11045401);" href="javascript:;"><i>医疗卫生机构会计核算实务</i></a></span><a class="tit-a" href="javascript:;" onclick="watchCourseStart(18,2019,1857,false,false,'fromLast',11045401);">继续学习</a>
            </div>
            <div class="learn-wrap mb30">
                <p class="title">当前年度课程</p>
                <div class="learn_wrap">
                    <div class="learn-year clearfix">
                    <div id="learn-year" class="fl">
                        <span accountid="11045401" opentype="1" class="learn-year-tab active default ">2019年度</span> 
                    </div>
                        <a class="learn-year-a fr" id="continue" href="/study/u/selectCoursePre?accountId=11045401">去选课</a>
                    </div>
                    <div class="learn-class-wrap">
                    	<div class="learn-class clearfix" style="display: block;">
							<input type="hidden" id="loadFlag" name="loadFlag" value="1">
							<input type="hidden" id="accountId" name="accountId" value="11045401">
                            <div class="learn clearfix" id="learn">
                                <div class="learn-class-left">
                                			<div>
		                                    	<span class="mb10">学习要求：</span><span style="margin-left:4px;margin-top:1px;display:inline-block;vertical-align: top;"><p>专业大于等于60学分</p><p>公需原则上大于等于18学分</p><p>总学分大于等于90学分</p><p></p></span>
		                                	</div>
	                                    <p class="mb10">完成说明：
	                                    	不需要考试
	                                    </p>
	                                    <p>实际学习：
									   		已获总学分<span class="cl-f1">20.2</span>学分
										   	   		，
									   		已获专业<span class="cl-f1">20.2</span>学分
										   	   		，
									   		已获公需<span class="cl-f1">0.0</span>学分
										</p>
										<p>已抵免：0学分</p>
                                </div>
                                <div class="learn-class-right">
							      		<p class="learning">学习中</p>
                                </div>
                            </div>
                            
                            <div class="table_div table_div1">
                                <div class="z_table">
                                    <table class="table all">
                                        <thead>
                                        <tr class="table_bg">
                                        	<th style="width:5%">序号</th>
                                            <th style="width:20%">课程名称</th>
									            <th style="width:10%">课程类别</th>
                                            <th style="width:10%">总学分</th>
                                            <th style="width:10%">已学学分</th>
                                            <th style="width:10%">学习时长</th>
                                            <th style="width:10%">学习状态</th>
                                            <th style="width:15%">操作</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                         	<tr>
	                                            <td>1</td>
	                                            <td>
												  	<a onclick="watchCourse('18','2019','1278','11045401','1');" href="javascript:;">《规范“三去一降一补”有关业务的会计处理规定》解读</a>
												</td>
										          <td>专业</td>
	                                            <td>1</td>
	                                            <td>1</td>
	                                            <td>00:46:23</td>
	                                            <td>
													  已完成
												</td>
												 <td>
													  
													  <a class="operate-a active" onclick="watchCourse('18','2019','1278','11045401','1');">重新学习</a>
													  
													  
													  
										        <a class="operate-a other" onclick="watchCourse('18','2019','1278','11045401','0');">课程目录</a>
											  </td>
                                        	</tr>
                                         	<tr>
	                                            <td>2</td>
	                                            <td>
												  	<a onclick="watchCourse('18','2019','1266','11045401','1');" href="javascript:;">COSO内部控制框架解读</a>
												</td>
										          <td>专业</td>
	                                            <td>1.5</td>
	                                            <td>1.5</td>
	                                            <td>01:10:13</td>
	                                            <td>
													  已完成
												</td>
												 <td>
													  
													  <a class="operate-a active" onclick="watchCourse('18','2019','1266','11045401','1');">重新学习</a>
													  
													  
													  
										        <a class="operate-a other" onclick="watchCourse('18','2019','1266','11045401','0');">课程目录</a>
											  </td>
                                        	</tr>
                                         	<tr>
	                                            <td>3</td>
	                                            <td>
												  	<a onclick="watchCourse('18','2019','1265','11045401','1');" href="javascript:;">集团资金管理的现金池模式</a>
												</td>
										          <td>专业</td>
	                                            <td>1.8</td>
	                                            <td>1.8</td>
	                                            <td>01:24:56</td>
	                                            <td>
													  已完成
												</td>
												 <td>
													  
													  <a class="operate-a active" onclick="watchCourse('18','2019','1265','11045401','1');">重新学习</a>
													  
													  
													  
										        <a class="operate-a other" onclick="watchCourse('18','2019','1265','11045401','0');">课程目录</a>
											  </td>
                                        	</tr>
                                         	<tr>
	                                            <td>4</td>
	                                            <td>
												  	<a onclick="watchCourse('18','2019','1135','11045401','1');" href="javascript:;">《私募投资基金监督管理暂行办法》解读</a>
												</td>
										          <td>专业</td>
	                                            <td>2.4</td>
	                                            <td>2.4</td>
	                                            <td>01:50:47</td>
	                                            <td>
													  已完成
												</td>
												 <td>
													  
													  <a class="operate-a active" onclick="watchCourse('18','2019','1135','11045401','1');">重新学习</a>
													  
													  
													  
										        <a class="operate-a other" onclick="watchCourse('18','2019','1135','11045401','0');">课程目录</a>
											  </td>
                                        	</tr>
                                         	<tr>
	                                            <td>5</td>
	                                            <td>
												  	<a onclick="watchCourse('18','2019','1488','11045401','1');" href="javascript:;">税务基础一点通</a>
												</td>
										          <td>专业</td>
	                                            <td>13.5</td>
	                                            <td>13.5</td>
	                                            <td>08:13:04</td>
	                                            <td>
													  已完成
												</td>
												 <td>
													  
													  <a class="operate-a active" onclick="watchCourse('18','2019','1488','11045401','1');">重新学习</a>
													  
													  
													  
										        <a class="operate-a other" onclick="watchCourse('18','2019','1488','11045401','0');">课程目录</a>
											  </td>
                                        	</tr>
                                         	<tr>
	                                            <td>6</td>
	                                            <td>
												  	  <a onclick="watchCourseStart('18','2019','1857','false','false','toList','11045401');" href="javascript:;">医疗卫生机构会计核算实务</a>
												</td>
										          <td>专业</td>
	                                            <td>11.5</td>
	                                            <td>0</td>
	                                            <td>01:55:30</td>
	                                            <td>
													  正在学习
												</td>
												 <td>
													  <a class="operate-a active" onclick="watchCourseStart('18','2019','1857','false','false','fromLast','11045401');">继续学习</a>
													  
													  
													  
													  
										        <a class="operate-a other" onclick="watchCourse('18','2019','1857','11045401','0');">课程目录</a>
											  </td>
                                        	</tr>
                                         	<tr>
	                                            <td>7</td>
	                                            <td>
												  	  <a onclick="watchCourseStart('18','2019','1803','false','false','toList','11045401');" href="javascript:;">行政事业单位执行《政府会计制度——行政事业单位会计科目和报表》系列补充和衔接规定的解读</a>
												</td>
										          <td>专业</td>
	                                            <td>18.7</td>
	                                            <td>0</td>
	                                            <td>00:00:00</td>
	                                            <td>
													  正在学习
												</td>
												 <td>
													  <a class="operate-a active" onclick="watchCourseStart('18','2019','1803','false','false','fromLast','11045401');">继续学习</a>
													  
													  
													  
													  
										        <a class="operate-a other" onclick="watchCourse('18','2019','1803','11045401','0');">课程目录</a>
											  </td>
                                        	</tr>
                                         	<tr>
	                                            <td>8</td>
	                                            <td>
												  	  <a onclick="watchCourseStart('18','2019','1454','false','false','toList','11045401');" href="javascript:;">《会计法》修订解读</a>
												</td>
										          <td>专业</td>
	                                            <td>4.2</td>
	                                            <td>0</td>
	                                            <td>01:26:37</td>
	                                            <td>
													  正在学习
												</td>
												 <td>
													  <a class="operate-a active" onclick="watchCourseStart('18','2019','1454','false','false','fromLast','11045401');">继续学习</a>
													  
													  
													  
													  
										        <a class="operate-a other" onclick="watchCourse('18','2019','1454','11045401','0');">课程目录</a>
											  </td>
                                        	</tr>
                                         	<tr>
	                                            <td>9</td>
	                                            <td>
													  		<a onclick="watchCourseStart('18','2019','1841','false','false','toList','11045401');" href="javascript:;">政府采购实务及案例</a>
												</td>
										          <td>专业</td>
	                                            <td>17.6</td>
	                                            <td>0</td>
	                                            <td>00:00:00</td>
	                                            <td>
													  未学习
												</td>
												 <td>
													  
													  
														   <a class="operate-a active" onclick="watchCourseStart('18','2019','1841','false','false','toList','11045401');">开始学习</a>
													  
													  
													  
										        <a class="operate-a other" onclick="watchCourse('18','2019','1841','11045401','0');">课程目录</a>
											  </td>
                                        	</tr>
                                         	<tr>
	                                            <td>10</td>
	                                            <td>
													  		<a onclick="watchCourseStart('18','2019','1733','false','false','toList','11045401');" href="javascript:;">《证券法》</a>
												</td>
										          <td>专业</td>
	                                            <td>2.6</td>
	                                            <td>0</td>
	                                            <td>00:00:00</td>
	                                            <td>
													  未学习
												</td>
												 <td>
													  
													  
														   <a class="operate-a active" onclick="watchCourseStart('18','2019','1733','false','false','toList','11045401');">开始学习</a>
													  
													  
													  
										        <a class="operate-a other" onclick="watchCourse('18','2019','1733','11045401','0');">课程目录</a>
											  </td>
                                        	</tr>
                                         	<tr>
	                                            <td>11</td>
	                                            <td>
													  		<a onclick="watchCourseStart('18','2019','1272','false','false','toList','11045401');" href="javascript:;">《外商投资企业法》</a>
												</td>
										          <td>专业</td>
	                                            <td>3.3</td>
	                                            <td>0</td>
	                                            <td>00:00:00</td>
	                                            <td>
													  未学习
												</td>
												 <td>
													  
													  
														   <a class="operate-a active" onclick="watchCourseStart('18','2019','1272','false','false','toList','11045401');">开始学习</a>
													  
													  
													  
										        <a class="operate-a other" onclick="watchCourse('18','2019','1272','11045401','0');">课程目录</a>
											  </td>
                                        	</tr>
                                         	<tr>
	                                            <td>12</td>
	                                            <td>
													  		<a onclick="watchCourseStart('18','2019','1291','false','false','toList','11045401');" href="javascript:;">《客户管理》</a>
												</td>
										          <td>专业</td>
	                                            <td>5.7</td>
	                                            <td>0</td>
	                                            <td>00:00:00</td>
	                                            <td>
													  未学习
												</td>
												 <td>
													  
													  
														   <a class="operate-a active" onclick="watchCourseStart('18','2019','1291','false','false','toList','11045401');">开始学习</a>
													  
													  
													  
										        <a class="operate-a other" onclick="watchCourse('18','2019','1291','11045401','0');">课程目录</a>
											  </td>
                                        	</tr>
                                         	<tr>
	                                            <td>13</td>
	                                            <td>
													  		<a onclick="watchCourseStart('18','2019','1505','false','false','toList','11045401');" href="javascript:;">财务软件速成班——金蝶</a>
												</td>
										          <td>专业</td>
	                                            <td>1.3</td>
	                                            <td>0</td>
	                                            <td>00:00:00</td>
	                                            <td>
													  未学习
												</td>
												 <td>
													  
													  
														   <a class="operate-a active" onclick="watchCourseStart('18','2019','1505','false','false','toList','11045401');">开始学习</a>
													  
													  
													  
										        <a class="operate-a other" onclick="watchCourse('18','2019','1505','11045401','0');">课程目录</a>
											  </td>
                                        	</tr>
                                         	<tr>
	                                            <td>14</td>
	                                            <td>
													  		<a onclick="watchCourseStart('18','2019','1655','false','false','toList','11045401');" href="javascript:;">《中国经济安全透视系列之金融领域的罗网》</a>
												</td>
										          <td>公需</td>
	                                            <td>3.6</td>
	                                            <td>0</td>
	                                            <td>00:00:00</td>
	                                            <td>
													  未学习
												</td>
												 <td>
													  
													  
														   <a class="operate-a active" onclick="watchCourseStart('18','2019','1655','false','false','toList','11045401');">开始学习</a>
													  
													  
													  
										        <a class="operate-a other" onclick="watchCourse('18','2019','1655','11045401','0');">课程目录</a>
											  </td>
                                        	</tr>
                                         	<tr>
	                                            <td>15</td>
	                                            <td>
													  		<a onclick="watchCourseStart('18','2019','1715','false','false','toList','11045401');" href="javascript:;">人工智能与金融创新</a>
												</td>
										          <td>公需</td>
	                                            <td>3.5</td>
	                                            <td>0</td>
	                                            <td>00:00:00</td>
	                                            <td>
													  未学习
												</td>
												 <td>
													  
													  
														   <a class="operate-a active" onclick="watchCourseStart('18','2019','1715','false','false','toList','11045401');">开始学习</a>
													  
													  
													  
										        <a class="operate-a other" onclick="watchCourse('18','2019','1715','11045401','0');">课程目录</a>
											  </td>
                                        	</tr>
                                         	<tr>
	                                            <td>16</td>
	                                            <td>
													  		<a onclick="watchCourseStart('18','2019','1717','false','false','toList','11045401');" href="javascript:;">《互联网金融风险防范》</a>
												</td>
										          <td>公需</td>
	                                            <td>4.8</td>
	                                            <td>0</td>
	                                            <td>00:00:00</td>
	                                            <td>
													  未学习
												</td>
												 <td>
													  
													  
														   <a class="operate-a active" onclick="watchCourseStart('18','2019','1717','false','false','toList','11045401');">开始学习</a>
													  
													  
													  
										        <a class="operate-a other" onclick="watchCourse('18','2019','1717','11045401','0');">课程目录</a>
											  </td>
                                        	</tr>
                                         	<tr>
	                                            <td>17</td>
	                                            <td>
													  		<a onclick="watchCourseStart('18','2019','1538','false','false','toList','11045401');" href="javascript:;">小米CDR未果，CDR是什么？</a>
												</td>
										          <td>公需</td>
	                                            <td>3.1</td>
	                                            <td>0</td>
	                                            <td>00:00:00</td>
	                                            <td>
													  未学习
												</td>
												 <td>
													  
													  
														   <a class="operate-a active" onclick="watchCourseStart('18','2019','1538','false','false','toList','11045401');">开始学习</a>
													  
													  
													  
										        <a class="operate-a other" onclick="watchCourse('18','2019','1538','11045401','0');">课程目录</a>
											  </td>
                                        	</tr>
                                         	<tr>
	                                            <td>18</td>
	                                            <td>
													  		<a onclick="watchCourseStart('18','2019','1530','false','false','toList','11045401');" href="javascript:;">《中美贸易战评析》</a>
												</td>
										          <td>公需</td>
	                                            <td>3.4</td>
	                                            <td>0</td>
	                                            <td>00:00:00</td>
	                                            <td>
													  未学习
												</td>
												 <td>
													  
													  
														   <a class="operate-a active" onclick="watchCourseStart('18','2019','1530','false','false','toList','11045401');">开始学习</a>
													  
													  
													  
										        <a class="operate-a other" onclick="watchCourse('18','2019','1530','11045401','0');">课程目录</a>
											  </td>
                                        	</tr>
                                         	<tr>
	                                            <td>19</td>
	                                            <td>
													  		<a onclick="watchCourseStart('18','2019','1663','false','false','toList','11045401');" href="javascript:;">《最新财务报表格式——深度解读》</a>
												</td>
										          <td>专业</td>
	                                            <td>4.9</td>
	                                            <td>0</td>
	                                            <td>00:00:00</td>
	                                            <td>
													  未学习
												</td>
												 <td>
													  
													  
														   <a class="operate-a active" onclick="watchCourseStart('18','2019','1663','false','false','toList','11045401');">开始学习</a>
													  
													  
													  
										        <a class="operate-a other" onclick="watchCourse('18','2019','1663','11045401','0');">课程目录</a>
											  </td>
                                        	</tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                            
                        </div>
                        
                    </div>
                </div>
        </div>
		


<script>
function coinCardform(){
var pageContext = $("#pageContext").val();
var year =$("#coinbtntc").attr("year");
window.location=pageContext + "/index/initCardActive?openType=1&year="+year;
}
function coinform(){
var pageContext = $("#pageContext").val();
var year =$("#coinbtntc").attr("year");
window.location=pageContext + "/index/purchaseGoodsList?openType=0&year="+year;
}
function reSelectform(){
	var pageContext = $("#pageContext").val();
	var accountId =$("#reSelectbtntc").attr("accountId");
 	window.location.href=pageContext + "/u/againSelectCourse?accountId="+accountId;
};
$(function(){
	$("#coinbtntc").click(function(){//bug
		var pageContext = $("#pageContext").val();
		var accountId = $("#coinbtntc").attr("accountId");
		$.ajax({
			type : "get",
			url : encodeURI(pageContext + "/u/validateStudyEndTime/"),
			dataType : "json",
			async: false,
			success : function(data) {
				if (data == 1) {
					//点击重新缴费时，把当前年度account设置为无效
					$.ajax({
						type : "post",
						url : encodeURI(pageContext + "/u/deleteAccount/"),
						dataType : "json",
						async: false,
						data: "accountId=" + accountId,
						success : function(data) {
							
						}
					});	
					var count=$("#coinbtntc").attr("count");
					var _box = new da.comp.popup({
	                    boxSize:{width:455},
	                    title:'温馨提示'
	                }),
	                _html = $('<div></div>',{
	                    'class':'',
	                    html:$('<div></div>',{
	                        'class':'tip-box-content',
	                        html:[
	                            '<p class="tip-box-p">根据地区培训要求，您考试'+count+'次未通过需重新缴费学习。请重新购买课程！</p>',
	                          		'<div class="tip-box-btn" onclick="coinCardform()">学习卡激活</div>',
	                          		'<div class="tip-box-btn" onclick="coinform()">网银购课</div>'
	                        ]
	                    })
	                });
	           		 _box.show(_html);		
				} else if (data == 0) {
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: center">当前已过学习截止时间，不能再进行此项操作！</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
	            _box.show(_html,function (html) {
				html.find('.tip-box-btn').on({
					click:function () {
						_box.hide();
					}
				});
			});
					return false;
				}
			}
		});	
	});
	
	$("#reSelectbtntc").click(function(){
    	var pageContext = $("#pageContext").val();
    	var accountId =$("#reSelectbtntc").attr("accountId");
		$.ajax({
			type : "get",
			url : encodeURI(pageContext + "/u/validateStudyEndTime/?accountId=" + accountId),
			dataType : "json",
			async: false,
			success : function(data) {
				if (data == 1) {
					var count=$("#reSelectbtntc").attr("count");
					var _box = new da.comp.popup({
	                    boxSize:{width:455},
	                    title:'温馨提示'
	                }),
					_html = $('<div></div>',{
	                    'class':'',
	                    html:$('<div></div>',{
	                        'class':'tip-box-content',
	                        html:[
	                            '<p class="tip-box-p">根据地区培训要求，您考试'+count+'次未通过需重新缴费学习,请重新选择课程！</p>',
	                            	'<div class="tip-box-btn" onclick="reSelectform()">重新选课</div>'
	                        ]
	                    })
	                	});
	           		_box.show(_html);	
				} else if (data == 0) {
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: center">当前已过学习截止时间，不能再进行此项操作！</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
	            	_box.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								_box.hide();
							}
						});
					});
					return false;
				} else if (data == 4) {
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: center;width: auto;">该课程已超过有效期，请重新缴费学习!</p>',
	                            '<div class="tip-box-btn">重新缴费</div>'
	                        ]
	                    })
	                });
		            _box.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								window.location=pageContext + "/u/courseOverdueAgainCoin?openType=0&year="+year+"&accountId="+accountId;
							}
						});
					});
					return false;
				} else if(data == 9){
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: left">学员您好！您的课程学习有不良行为，学习记录判定为无效，请联系客服重新开通课程，谢谢配合！祝您学习愉快！</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
		            _box.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								_box.hide();
							}
						});
					});
					return false;
				}
			}
		});		
    });
    
});

	//重新开始学习
	function watchCourse(periodId, year, courseId, accountId,type){
		var pageContext = $("#pageContext").val();
		var url = pageContext + "/u/validateStudyEndTime/?accountId=" + accountId;
		if(type == '0'){
			url = url + "&courseId="+courseId;
		}
		$.ajax({
			type : "get",
			url : encodeURI(url),
			dataType : "json",
			async: false,
			success : function(data) {
				if (data == 1) {
					$.ajax({
						type : "post",
						data : {accountId:accountId,courseId:courseId},
						url : encodeURI(pageContext + "/u/checkCourseStatus"),
						dataType : "json",
						async: false,
						success : function(data) {
							if(data==true) {
								watchCourseByType(periodId, courseId, year, "auto", accountId);
							} else {
								watchCourseByType(periodId, courseId, year, "toList", accountId);
							}
						}
					});
				} else if (data == 0) {
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: center">当前已到学习截止时间，不能进行学习！</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
	            	_box.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								_box.hide();
							}
						});
					});
					return false;
				} else if (data == 4) {
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: center;width: auto;">该课程已超过有效期，请重新缴费学习!</p>',
	                            '<div class="tip-box-btn">重新缴费</div>'
	                        ]
	                    })
	                });
		            _box.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								window.location=pageContext + "/u/courseOverdueAgainCoin?openType=0&year="+year+"&accountId="+accountId;
							}
						});
					});
					return false;
				} else if(data == 9){
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: left">学员您好！您的课程学习有不良行为，学习记录判定为无效，请联系客服重新开通课程，谢谢配合！祝您学习愉快！</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
		            _box.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								_box.hide();
							}
						});
					});
					return false;
				}else if(data == 10){
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: left">请先学习专业课程!</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
		            _box.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								_box.hide();
							}
						});
					});
					return false;
				}else if(data == 11){
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: left">请先学习公需课程!</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
		            _box.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								_box.hide();
							}
						});
					});
					return false;
				}else if(data == 12){
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: left">请先学习专业必修课程!</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
		            _box.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								_box.hide();
							}
						});
					});
					return false;
				}else if(data == 13){
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: left">请先学习专业选修课程!</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
		            _box.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								_box.hide();
							}
						});
					});
					return false;
				}else if(data == 14){
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: left">请先学习公需必修课程!</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
		            _box.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								_box.hide();
							}
						});
					});
					return false;
				}else if(data == 15){
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: left">请先学习公需选修课程!</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
		            _box.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								_box.hide();
							}
						});
					});
					return false;
				}
			}
		});
	}
	
	//开始进行听课
	function watchCourseStart(periodId, year, courseId, verifyApplyInfo, verifyWatchIf, type, accountId) {
		var pageContext = $("#pageContext").val();
		$.ajax({
			type : "get",
			url : encodeURI(pageContext + "/u/validateStudyEndTime/?accountId=" + accountId+"&courseId="+courseId),
			dataType : "json",
			async: false,
			success : function(data) {
				if (data == 1) {
				/**
					//听课前先进行是否需要补充信息校验以及是否前一门课程听完才能听这一门课
					if (verifyApplyInfo == "true") {
						$.ajax({
							type : "post",
							url : encodeURI("/study/u/checkCourseApplyInfo/"),
							dataType : "json",
							async: false,
							success : function(data) {
								if(data!=true){
									if (verifyWatchIf == "false") {
										//看是第一次听课，还是之前已经听过
										watchCourseByType(periodId, courseId, year, type, accountId);
									}
								}else{
									$("#courseReStrs").text("对不起，请您先补充用户信息后再进行听课！");
									$('#coursePw').skygqbox();
								}
							}
						});
					}
				*/
					if (verifyWatchIf == "true") {
						$.ajax({
							type:"get",
							async: false,
							url : encodeURI("/study/u/verifyWatchIf?year=" + year + "&courseId=" + courseId +"&accountId="+accountId),
							dataType:"json",
							success:function(data) {
								$.ajax({
									type : "post",
									data : {accountId:accountId,courseId:courseId},
									url : encodeURI(pageContext + "/u/checkCourseStatus"),
									dataType : "json",
									async: false,
									success : function(data) {
										if(data==true) {
											type = "auto";
										} 
									}
								});
								if(data.verifyResult == "none") {
									watchCourseByType(periodId, courseId, year, type, accountId);
								} else if (data.verifyResult == "toExercise"){
									if (data.isExerciseSelf){
										var _box = new da.comp.popup({
						                    boxSize: {width: 347},
						                    title: '温馨提示'
						                }),
						                _html = $('<div></div>', {
						                    'class': '',
						                    html: $('<div></div>', {
						                        'class': 'tip-box-content',
						                        html: [
						                            '<p class="tip-box-p" style="text-align: center">您已学完该课程了，赶快参加该课程的随堂练习考试吧！</p>',
						                            '<div class="tip-box-btn" onclick="doConfirm()">确认</div>'
						                        ]
						                    })
						                });
						            _box.show(_html);
									} else {
										var _box = new da.comp.popup({
						                    boxSize: {width: 347},
						                    title: '温馨提示'
						                }),
						                _html = $('<div></div>', {
						                    'class': '',
						                    html: $('<div></div>', {
						                        'class': 'tip-box-content',
						                        html: [
						                            '<p class="tip-box-p" style="text-align: center"> 您还没有参加《' + decodeURIComponent(data.operateCourseName) + '》课程的随堂练习考试，考试通过才能学习下一课程！</p>',
						                            '<div class="tip-box-btn" onclick="doConfirm()">确认</div>'
						                        ]
						                    })
						                });
						            _box.show(_html);
									}
								} else if (data.verifyResult == "toContinueStudy"){
									if (data.isContinueStudySelf) {
										watchCourseByType(periodId, courseId, year, type, accountId);
									} else {
										var _box = new da.comp.popup({
						                    boxSize: {width: 347},
						                    title: '温馨提示'
						                }),
						                _html = $('<div></div>', {
						                    'class': '',
						                    html: $('<div></div>', {
						                        'class': 'tip-box-content',
						                        html: [
						                            '<p class="tip-box-p" style="text-align: center"> 您还没有完成《' + decodeURIComponent(data.operateCourseName) + '》课程的学习，完成后才能学习下一课程！</p>',
						                            '<div class="tip-box-btn" onclick="doConfirm()">确认</div>'
						                        ]
						                    })
						                });
						            _box.show(_html);
									}
								}
							}
						});
					}else{
						watchCourseByType(periodId, courseId, year, type, accountId);
					}
				} else if (data == 0) {
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: center">当前已过学习截止日期，不能进行学习!</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
		            _box.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								_box.hide();
							}
						});
					});
					return false;
				} else if (data == 4) {
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: center;width: auto;">该课程已超过有效期，请重新缴费学习!</p>',
	                            '<div class="tip-box-btn">重新缴费</div>'
	                        ]
	                    })
	                });
		            _box.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								window.location=pageContext + "/u/courseOverdueAgainCoin?openType=0&year="+year+"&accountId="+accountId;
							}
						});
					});
					return false;
				} else if(data == 9){
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: left">学员您好！您的课程学习有不良行为，学习记录判定为无效，请联系客服重新开通课程，谢谢配合！祝您学习愉快！</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
		            _box.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								_box.hide();
							}
						});
					});
					return false;
				}else if(data == 10){
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: left">请先学习专业课程!</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
		            _box.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								_box.hide();
							}
						});
					});
					return false;
				}else if(data == 11){
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: left">请先学习公需课程!</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
		            _box.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								_box.hide();
							}
						});
					});
					return false;
				}else if(data == 12){
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: left">请先学习专业必修课程!</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
		            _box.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								_box.hide();
							}
						});
					});
					return false;
				}else if(data == 13){
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: left">请先学习专业选修课程!</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
		            _box.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								_box.hide();
							}
						});
					});
					return false;
				}else if(data == 14){
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: left">请先学习公需必修课程!</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
		            _box.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								_box.hide();
							}
						});
					});
					return false;
				}else if(data == 15){
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: left">请先学习公需选修课程!</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
		            _box.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								_box.hide();
							}
						});
					});
					return false;
				}
			}
		});
	}
	
	//开始进行听课
	function watchCourseByType(periodId, courseId, year, type, accountId) {
		var pageContext = $("#pageContext").val();
		$.ajax({
			type : "post",
			url : "/study/u/organizateData",
			data: "courseId=" + courseId + "&accountId=" + accountId + "&type=" + type,
			dataType:"json",
			async: false,
			success : function(data) {
				var watchUrl;
				if (type == "toList") {
					//这时候先判断下是否需要修改account的状态
					$.ajax({
						type : "post",
						url : "/study/u/updateAccountStudyStatus",
						dataType : "json",
						data : "accountId=" + accountId,
						async: false
					});
					watchUrl = data.url + "?cwCode=" + data.cwCode + "&year=" + data.year +  
					"&userCode=" + data.userCode + "&time=" + data.time + "&key=" + data.key + 
					"&cwCodesPermission=" + data.cwCodesPermission  + 
					"&isDrag=" + data.isDrag + "&listenVerifyType=" + data.listenVerifyType + "&listenVerifyInterval=" + data.listenVerifyInterval +
					"&logoURL=" + data.logoURL +"&logoThreeURL=" + data.logoThreeURL +"&logoPos=" + data.logoPos +
					"&titlePath=" + data.titlePath + "&tailPath=" + data.tailPath +"&platformCode="+data.platformCode+"&toWhere=toList";
				} else if (type == "fromLast") {
					watchUrl = data.url + "?cwCode=" + data.cwCode +"&year=" + data.year +
					"&userCode=" + data.userCode + "&time=" + data.time + "&key=" + data.key + 
					"&cwCodesPermission=" + data.cwCodesPermission  + 
					"&isDrag=" + data.isDrag + "&listenVerifyType=" + data.listenVerifyType + "&listenVerifyInterval=" + data.listenVerifyInterval + 
					"&logoURL=" + data.logoURL +"&logoThreeURL=" + data.logoThreeURL +"&logoPos=" + data.logoPos +
					"&titlePath=" + data.titlePath + "&tailPath=" + data.tailPath +"&platformCode="+data.platformCode+"&toWhere=fromLast";
				}else if (type == "auto") {
					//这时候先判断下是否需要修改account的状态
					$.ajax({
						type : "post",
						url : "/study/u/updateAccountStudyStatus",
						dataType : "json",
						data : "accountId=" + accountId,
						async: false
					});
					watchUrl = data.url + "?cwCode=" + data.cwCode + "&year=" + data.year +  
					"&userCode=" + data.userCode + "&time=" + data.time + "&key=" + data.key + 
					"&cwCodesPermission=" + data.cwCodesPermission + 
					"&isDrag=" + data.isDrag + "&listenVerifyType=" + data.listenVerifyType + "&listenVerifyInterval=" + data.listenVerifyInterval +
					"&logoURL=" + data.logoURL +"&logoThreeURL=" + data.logoThreeURL +"&logoPos=" + data.logoPos +
					"&titlePath=" + data.titlePath + "&tailPath=" + data.tailPath +"&platformCode="+data.platformCode+"&toWhere=toList";
				}
				window.open(watchUrl);
			}
		});
	}
	
	//开始考试
	function startExam(accountId, year) {
		$.ajax({
			type : "post",
			url : "/study/u/organizateExamData",
			dataType:"json",
			data: "year=" + year + "&accountId=" + accountId + "&paperUsedStr=1",
			async: false,
			success : function(data) {
				var exerciseUrl = data.url + "?key=" + data.key + "&keyTime=" + data.keyTime + "&examShowType=" + data.examShowType + "&isShowScore=" + data.isShowScore
								+ "&examTime=" + data.examTime + "&passScore=" + data.passScore + "&examRule=" + data.examRule + "&courseID=" + data.courseID + "&examType=" + data.examType + "&examYear=" + data.examYear + "&quesSource=" + data.quesSource
								+ "&studentID=" + data.studentID + "&ppID=" + data.ppID + "&ccID=" + data.ccID + "&paperUsed=3&isShowAnswer=" + data.isShowAnswer + "&isShowAnswerPaper=" + data.isShowAnswerPaper + "&initStyle=" + data.initStyle
								+ "&isShowScore=" + data.isShowScore;
				window.open(examUrl);
			}
		});
	}
	
	//学完了课程做随堂练习
	function doExercise(periodId, year, courseId, accountId, courseItemId) {
		var pageContext = $("#pageContext").val();
		$.ajax({
			type : "get",
			url : encodeURI(pageContext + "/u/validatePratice/"),
			dataType : "json",
			data: "accountId=" + accountId + "&courseItemId=" + courseItemId,
			async: false,
			success : function(data) {
				if (data == 1) {
					$.ajax({
						type : "post",
						url : "/study/u/organizateExamData",
						dataType:"json",
						data: "courseID=" + courseId + "&year=" + year + "&accountId=" + accountId + "&paperUsedStr=3",
						async: false,
						success : function(data) {
						/**
							var exerciseUrl = data.url + "?key=" + data.key +
								"&year=" + year + "&accountId=" + accountId + "&courseId=" + courseId +
								"&paperUsedStr=3";
						*/	
							var exerciseUrl = data.url + "?key=" + data.key + "&keyTime=" + data.keyTime + "&examShowType=" + data.examShowType + "&isShowScore=" + data.isShowScore
								+ "&examTime=" + data.examTime + "&passScore=" + data.passScore + "&examRule=" + data.examRule + "&courseID=" + data.courseID + "&examType=" + data.examType + "&examYear=" + data.examYear 
								+ "&studentID=" + data.studentID + "&ppID=" + data.ppID + "&ccID=" + data.ccID + "&paperUsed=3&isShowAnswer=" + data.isShowAnswer + "&isShowAnswerPaper=" + data.isShowAnswerPaper + "&initStyle=" + data.initStyle + "&returnParam=" + data.returnParam
								+ "&isShowScore=" + data.isShowScore;
							window.open(exerciseUrl);
						}
					});
				} else if (data == 0) {
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: center">当前已过学习截止时间，不能进行随堂练习！</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
	            _box.show(_html,function (html) {
				html.find('.tip-box-btn').on({
					click:function () {
						_box.hide();
					}
				});
			});
					return false;
				} else if (data == 4) {
					var pageContext = $("#pageContext").val();
					window.location.href =  pageContext + "/u/myCourse?accountId=" + accountId;
				}
			}
		});	
	}
	
	//学完了课程做练习题
	function doLianxi(periodId, year, courseId, accountId, courseItemId) {
		var pageContext = $("#pageContext").val();
		$.ajax({
			type : "get",
			url : encodeURI(pageContext + "/u/validateLianxi/"),
			dataType : "json",
			data: "accountId=" + accountId + "&courseItemId=" + courseItemId,
			async: false,
			success : function(data) {
				if (data == 1) {
					$.ajax({
						type : "post",
						url : "/study/u/organizateExamData",
						dataType:"json",
						data: "courseID=" + courseId + "&year=" + year + "&accountId=" + accountId + "&paperUsedStr=9",
						async: false,
						success : function(data) {
						/**
							var exerciseUrl = data.url + "?key=" + data.key +
								"&year=" + year + "&accountId=" + accountId + "&courseId=" + courseId +
								"&paperUsedStr=3";
						*/	
							var lianxiUrl = data.url + "?key=" + data.key + "&keyTime=" + data.keyTime + "&examShowType=" + data.examShowType + "&isShowScore=" + data.isShowScore
								+ "&examTime=" + data.examTime + "&passScore=" + data.passScore + "&examRule=" + data.examRule + "&courseID=" + data.courseID + "&examType=" + data.examType + "&examYear=" + data.examYear 
								+ "&studentID=" + data.studentID + "&ppID=" + data.ppID + "&ccID=" + data.ccID + "&paperUsed=9&isShowAnswer=" + data.isShowAnswer + "&isShowAnswerPaper=" + data.isShowAnswerPaper + "&initStyle=" + data.initStyle + "&returnParam=" + data.returnParam
								+ "&isShowScore=" + data.isShowScore;
							window.open(lianxiUrl);
						}
					});
				} else if (data == 0) {
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: center">当前已过学习截止时间，不能进行随堂练习！</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
	            _box.show(_html,function (html) {
				html.find('.tip-box-btn').on({
					click:function () {
						_box.hide();
					}
				});
			});
					return false;
				} else if (data == 4) {
					var pageContext = $("#pageContext").val();
					window.location.href =  pageContext + "/u/myCourse?accountId=" + accountId;
				}
			}
		});	
	}

	function doConfirm(){
		window.location.reload();
	}
	
	//校验学习时间是否已经到了截止日期
	function validateYearNingBoStudyTime(accountId,url, year) {
		var pageContext = $("#pageContext").val();
		$.ajax({
			type : "get",
			url : encodeURI(pageContext + "/u/validateStudyEndTime/"),
			dataType : "json",
			async: false,
			success : function(data) {
				if (data == 1) {
					//先判断该学员的考试状态
					$.ajax({
						type : "post",
						url : encodeURI(pageContext + "/index/getNingboExamType/"),
						dataType : "json",
						async: false,
						data: {
							accountId:accountId,
							year:year
						},
						success : function(data) {
							if (data.examType == "-1") {
								var _box = new da.comp.popup({
				                    boxSize: {width: 347},
				                    title: '温馨提示'
				                }),
				                _html = $('<div></div>', {
				                    'class': '',
				                    html: $('<div></div>', {
				                        'class': 'tip-box-content',
				                        html: [
				                            '<p class="tip-box-p" style="text-align: center">该年度在其他网校已缴费!</p>',
				                            '<div class="tip-box-btn" onclick="doConfirm()">确认</div>'
				                        ]
				                    })
				                });
				            _box.show(_html);
								return false;
							}else if (data.examType == "noRecord") {
								var _box = new da.comp.popup({
				                    boxSize: {width: 347},
				                    title: '温馨提示'
				                }),
				                _html = $('<div></div>', {
				                    'class': '',
				                    html: $('<div></div>', {
				                        'class': 'tip-box-content',
				                        html: [
				                            '<p class="tip-box-p" style="text-align: center">该年度在接口表中记录不存在！</p>',
				                            '<div class="tip-box-btn" onclick="doConfirm()">确认</div>'
				                        ]
				                    })
				                });
				            _box.show(_html);
								return false;
							} else {
								$.ajax({
									type : "post",
									url : encodeURI(pageContext + "/index/checkEvaluateForNb"),
									dataType : "json",
									data:{
										accountId:accountId
									},
									async: false,
									success : function(data) {
										if (data == true) {
											var _box = new da.comp.popup({
							                    boxSize: {width: 522},
							                    title: '宁波市会计人员继续教育评价表'
							                }),
							                _html = $('<div></div>', {
							                    'class': '',
							                    html: $('<div></div>', {
							                        'class': 'tip-box-content',
							                        html: [
							                            '<div class="form">\
							                                <div class="evaluate-wrap">\
							                                <div class="clearfix evaluate-list">\
							                                <p class="evaluate-p">1.您对继续教育课程的总体评价</p>\
							                                    <div name="e1" class="fl radio active" value="100" id="question1"><i></i><span>100分</span></div>\
							                                    <div name="e1" class="fl radio ml28" value="80" id="question1"><i></i><span>80分</span></div>\
							                                    <div name="e1" class="fl radio ml28" value="60" id="question1"><i></i><span>60分</span></div>\
							                                    <div name="e1" class="fl radio ml28" value="40" id="question1"><i></i><span>40分</span></div>\
							                                    <div name="e1" class="fl radio ml28" value="20" id="question1"><i></i><span>20分</span></div>\
							                                </div>\
							                                <div class="clearfix evaluate-list">\
							                                <p class="evaluate-p">2.您对继续教育课程授课内容的总体评价</p>\
							                                    <div name="e2" class="fl radio active" value="100" id="question2"><i></i><span>100分</span></div>\
							                                    <div name="e2" class="fl radio ml28" value="80" id="question2"><i></i><span>80分</span></div>\
							                                    <div name="e2" class="fl radio ml28" value="60" id="question2"><i></i><span>60分</span></div>\
							                                    <div name="e2" class="fl radio ml28" value="40" id="question2"><i></i><span>40分</span></div>\
							                                    <div name="e2" class="fl radio ml28" value="20" id="question2"><i></i><span>20分</span></div>\
							                                </div>\
							                                <div class="clearfix evaluate-list">\
							                                <p class="evaluate-p">3.您对该网校的服务质量的评价</p>\
							                                    <div name="e3" class="fl radio active" value="100" id="question3"><i></i><span>100分</span></div>\
							                                    <div name="e3" class="fl radio ml28" value="80" id="question3"><i></i><span>80分</span></div>\
							                                    <div name="e3" class="fl radio ml28" value="60" id="question3"><i></i><span>60分</span></div>\
							                                    <div name="e3" class="fl radio ml28" value="40" id="question3"><i></i><span>40分</span></div>\
							                                    <div name="e3" class="fl radio ml28" value="20" id="question3"><i></i><span>20分</span></div>\
							                                </div>\
							                                <div class="clearfix evaluate-list">\
							                                <p class="evaluate-p">4.您对继续教育课程教师授课效果的总体评价</p>\
							                                    <div name="e4" class="fl radio active" value="100" id="question4"><i></i><span>100分</span></div>\
							                                    <div name="e4" class="fl radio ml28" value="80" id="question4"><i></i><span>80分</span></div>\
							                                    <div name="e4" class="fl radio ml28" value="60" id="question4"><i></i><span>60分</span></div>\
							                                    <div name="e4" class="fl radio ml28" value="40" id="question4"><i></i><span>40分</span></div>\
							                                    <div name="e4" class="fl radio ml28" value="20" id="question4"><i></i><span>20分</span></div>\
							                                </div>\
							                                </div>\
							                            </div>',
							                            '<div class="textarea-wrap"><p class="evaluate-p">5.您对东奥会计在线继续教育有何建议</p><textarea placeholder="请输入宝贵意见" id="question5"></textarea></div>',
							                            '<div class="tip-box-btn" id="nbEvaluate">提交</div>'
							                        ]
							                    })
							                });
							            	_box.show(_html);
							            	$("#nbEvaluate").click(function(){
								            	var pageContext = $("#pageContext").val();
								        		var question1 =  $("#question1.active").attr("value");
								        		var question2 =  $("#question2.active").attr("value");
								        		var question3 =  $("#question3.active").attr("value");
								        		var question4 =  $("#question4.active").attr("value");
								        		var question5 = $("#question5").val();
								        		if(question5.length>200){
									        		var _box1 = new da.comp.popup({
									                    boxSize: {width: 347},
									                    title: '温馨提示'
									                }),
									                _html = $('<div></div>', {
									                    'class': '',
									                    html: $('<div></div>', {
									                        'class': 'tip-box-content',
									                        html: [
									                            '<p class="tip-box-p" style="text-align: center">评价字数不能超过200个！</p>',
									                            '<div class="tip-box-btn">确认</div>'
									                        ]
									                    })
									                });
									        		_box1.show(_html,function (html) {
												html.find('.tip-box-btn').on({
													click:function () {
														_box1.hide();
													}
												});
											});
									        		return false;
									        	}
								        		$.ajax({
								        			type : "post",
								        			url : encodeURI(pageContext + "/index/checkEvaluateForNb"),
								        			dataType : "json",
								        			data:{
								        				accountId:accountId
								        			},
								        			async: false,
								        			success : function(data) {
								        				_box.hide();
								        				if (data == true) {
								        					$.ajax({
								        						type : "post",
								        						url : encodeURI(pageContext + "/index/submitSuggestionForNb"),
								        						dataType : "json",
								        						data:{
								        							question1:question1,
								        							question2:question2,
								        							question3:question3,
								        							question4:question4,
								        							question5:question5,
								        							accountId:accountId,
								        							year:year
								        						},
								        						async: false,
								        						success : function(data) {
								        							if(data.flag){
								        								window.open(url);
								        							}
								        						}
								        					});
								        				}else{
								        					window.location.href=window.location.href;
								        					return false;
								        				}
								        			}
								        		});
								            });
										}else{
											window.open(url);		
										}
									}
								});	
							}
						}
					});
				} else if (data == 0) {
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: center">当前已过学习截止时间，不能再进行此项操作！</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
	            _box.show(_html,function (html) {
				html.find('.tip-box-btn').on({
					click:function () {
						_box.hide();
					}
				});
			});
					return false;
				}
			}
		});	
		
	}
	//校验学习时间是否已经到了截止日期
	function validateYearStudyTime(url) {
	if('ZJ' ==url){
		var zjurl = $("#zjurl").val();
		var idCard = $("#idCard").val();
		var realName = $("#realName").val();
		realName = encodeURI(realName);
		var schoolCode = $("#schoolCode").val();
		var zjmd5key = $("#zjmd5key").val();
		var examurl = zjurl+"?data="+"{\"idCard\":"+"\""+idCard+"\""+",\"realName\":"+"\""+realName+"\""+",\"schoolCode\":"+"\""+schoolCode+"\""+",\"key\":"+"\""+zjmd5key+"\"}";
		window.open(examurl);
	}else{
		var pageContext = $("#pageContext").val();
		$.ajax({
			type : "get",
			url : encodeURI(pageContext + "/u/validateStudyEndTime/"),
			dataType : "json",
			async: false,
			success : function(data) {
				if (data == 1) {
					window.open(url);
				} else if (data == 0) {
					var _box = new da.comp.popup({
	                    boxSize: {width: 347},
	                    title: '温馨提示'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p" style="text-align: center">当前已过学习截止时间，不能再进行此项操作！</p>',
	                            '<div class="tip-box-btn">确认</div>'
	                        ]
	                    })
	                });
	            _box.show(_html,function (html) {
				html.find('.tip-box-btn').on({
					click:function () {
						_box.hide();
					}
				});
			});
					return false;
				}
			}
		});	
		}
	}
	
	function evaluateYear(accountId,year){
		var pageContext = $("#pageContext").val();
		$.ajax({
			type : "post",
			url : encodeURI(pageContext + "/index/checkEvaluateGoodsBuyCredit"),
			dataType : "json",
			data:{
				accountId:accountId
			},
			async: false,
			success : function(data) {
				if (data == 1) {
					var _box = new da.comp.popup({
	                    boxSize: {width: 522},
	                    title: '网站评价'
	                }),
	                _html = $('<div></div>', {
	                    'class': '',
	                    html: $('<div></div>', {
	                        'class': 'tip-box-content',
	                        html: [
	                            '<p class="tip-box-p">恭喜您已成功通过继续教育考试，请您对本网站进行评价，感谢您的宝贵意见！</p>',
	                            '<div class="form">\
	                                <div class="clearfix evaluate-list">\
	                                    <div name="evaluete" class="fl radio" value="3"><i></i><span>优秀</span></div>\
	                                    <div name="evaluete" class="fl radio ml45" value="2"><i></i><span>良好</span></div>\
	                                    <div name="evaluete" class="fl radio ml45" value="1"><i></i><span>合格</span></div>\
	                                    <div name="evaluete" class="fl radio ml45" value="0"><i></i><span>一般</span></div>\
	                                </div>\
	                            </div>',
	                            '<textarea id="remark" placeholder="请输入宝贵意见"></textarea>',
	                            '<div class="tip-box-btn" id="yearEvaluate">提交</div>'
	                        ]
	                    })
	                });
	            _box.show(_html);
				$("#yearEvaluate").click(function(){
	            	var pageContext = $("#pageContext").val();
	        		var grade =  $(".clearfix.evaluate-list").find(".active").attr("value");
	        		if(!grade){
	        			var _box1 = new da.comp.popup({
		                    boxSize: {width: 347},
		                    title: '温馨提示'
		                }),
		                _html = $('<div></div>', {
		                    'class': '',
		                    html: $('<div></div>', {
		                        'class': 'tip-box-content',
		                        html: [
		                            '<p class="tip-box-p" style="text-align: center">请选择评价等级</p>',
		                            '<div class="tip-box-btn">确认</div>'
		                        ]
		                    })
		                });
		            _box1.show(_html,function (html) {
					html.find('.tip-box-btn').on({
						click:function () {
							_box1.hide();
						}
					});
				});
		        		return false;
		        	}
	        		var remark = $("#remark").val();
	        		if(remark.length>200){
		        		var _box2 = new da.comp.popup({
		                    boxSize: {width: 347},
		                    title: '温馨提示'
		                }),
		                _html = $('<div></div>', {
		                    'class': '',
		                    html: $('<div></div>', {
		                        'class': 'tip-box-content',
		                        html: [
		                            '<p class="tip-box-p" style="text-align: center">评价字数不能超过200个！</p>',
		                            '<div class="tip-box-btn">确认</div>'
		                        ]
		                    })
		                });
		        		_box2.show(_html,function (html) {
					html.find('.tip-box-btn').on({
						click:function () {
							_box2.hide();
						}
					});
				});
		        		return false;
		        	}
	        		$.ajax({
	        			type : "post",
	        			url : encodeURI(pageContext + "/index/checkEvaluate"),
	        			dataType : "json",
	        			data:{
	        				accountId:accountId
	        			},
	        			async: false,
	        			success : function(data) {
	        				_box.hide();
	        				if (data == true) {
	        					$.ajax({
	        						type : "post",
	        						url : encodeURI(pageContext + "/index/submitSuggestion"),
	        						dataType : "json",
	        						data:{
	        							grade:grade,
	        							accountId:accountId,
	        							remark:remark
	        						},
	        						async: false,
	        						success : function(data) {
	        							if(!data.flag){
	        								$.ajax({
	        									type : "post",
	        									url : data.url,
	        									dataType : "jsonp",
	        									jsonpCallback:"success_jsonpCallback",
	        									success : function(d) {
	        										
	        									}
	        								});
	        							}
	        							window.open("/study/u/printCard?accountId="+accountId);
	        							return false;
	        						}
	        					});
	        				}else{
	        					window.location.href=window.location.href;
	        					return false;
	        				}
	        			}
	        		});
	            });
				}else if(data == 0){
					window.open("/study/u/printCard?accountId="+accountId);
				} else {
					window.location="/study/userBuyCreditLog/userBuyCreditLog/userBuyCreditLogList?year="+year;
				}
			}
		});
	}
	
	//评价提交方法
	function addEvaluate(id){
		var pageContext = $("#pageContext").val();
		$.ajax({
		   type: "POST",
		   url: "/study/courseEvaluate/userCourseEvaluate/isAddUserCourseEvaluate",
		   dataType:"json",
		   data: "id="+id,
		   success: function(data){
		     if(data != null ){
		     		$('#electiveId').val(eval('(' + data + ')'))
		     		var _box = new da.comp.popup({
	                    boxSize:{width:522},
	                    title:'课程评价'
	                }),
	                _html = $('<div></div>',{
	                    'class':'',
	                    html:$('<div></div>',{
	                        'class':'tip-box-content',
	                        html:[
							'<p class="tip-box-p">感谢您在本网站学习，请您对本门课程进行评价！</p>',
							'<div class="form">\
							    <div class="clearfix review-list">\
							        <p class="review-tit">请输入0-100有效分数！</p>\
							        <div class="review-div"><span>课程得分：</span><input id="courseScore" type="text"><i style="display:none" class="icon-w"></i></div>\
							        <div class="review-div"><span>服务得分：</span><input id="serverSorce" type="text"><i style="display:none" class="icon-w"></i></div>\
							        <div class="review-div"><span>评价得分：</span><input id="evaluateSorce" type="text"><i style="display:none" class="icon-w"></i></div>\
							    </div>\
							</div>',
							'<div class="textarea-div clearfix"><span class="fl">课程内容：</span><textarea id="remark" class="fl"></textarea></div>',
							'<div class="tip-box-btn" id="scoreEvaluate">提交</div>'
	                        ]
	                    })
	                });
	            	_box.show(_html);
	            	$("#scoreEvaluate").click(function(){
		            	var courseScore=$("#courseScore").val();
		            	var serverSorce=$("#serverSorce").val();
		            	var evaluateSorce=$("#evaluateSorce").val();
		            	var remark=$("#remark").val();
		            	var checker = /^(100|[1-9]\d|\d)$/;
		            	if(!checker.test(courseScore)||!checker.test(serverSorce) ||!checker.test(evaluateSorce)){
			            	if(!checker.test(courseScore)){$("#courseScore").next().show()}else{ $("#courseScore").next().hide()};
			            	if(!checker.test(serverSorce)){$("#serverSorce").next().show()}else{ $("#serverSorce").next().hide()};
			            	if(!checker.test(evaluateSorce)){$("#evaluateSorce").next().show()}else{ $("#evaluateSorce").next().hide()};
			            	var _box = new da.comp.popup({
			                    boxSize: {width: 347},
			                    title: '温馨提示'
			                }),
			                _html = $('<div></div>', {
			                    'class': '',
			                    html: $('<div></div>', {
			                        'class': 'tip-box-content',
			                        html: [
			                            '<p class="tip-box-p" style="text-align: center">请输入0-100有效分数！</p>',
			                            '<div class="tip-box-btn">确认</div>'
			                        ]
			                    })
			                });
			            _box.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								_box.hide();
							}
						});
					});
		            		return false;
			            }
		            	if(remark.length>200){
			        		var _box1 = new da.comp.popup({
			                    boxSize: {width: 347},
			                    title: '温馨提示'
			                }),
			                _html = $('<div></div>', {
			                    'class': '',
			                    html: $('<div></div>', {
			                        'class': 'tip-box-content',
			                        html: [
			                            '<p class="tip-box-p" style="text-align: center">评价字数不能超过200个！</p>',
			                            '<div class="tip-box-btn">确认</div>'
			                        ]
			                    })
			                });
			        		_box1.show(_html,function (html) {
						html.find('.tip-box-btn').on({
							click:function () {
								_box1.hide();
							}
						});
					});
			        		return false;
			        	}
		            	window.location.href=pageContext + "/courseEvaluate/userCourseEvaluate/saveUserCourseEvaluate?electiveId="+id+
			            "&courseScore="+courseScore+"&serverSorce="+serverSorce+"&evaluateSorce="+evaluateSorce+"&remark="+remark;
		            });
		     	}
		   },
		   error: function(data){
		     da.comp.tip.show(data.responseText);
		   }
		});
	
	}
	$(".main").removeClass("main");
</script>
<script src="/study/js/new/learn/js/learn.js"></script>
<script src="/study/uc/js/daht.js"></script>
</div>
 <!-- 小能脚本 -->

 
  <!--   <script type="text/javascript"  settingid='{"settingdom":"daxn-settingid"}' cssname="content" htype="0" src="http://files.dongao.com/static/public/js/daxn-fixed.js?aaa" charset="utf-8"></script>
    <script type="text/javascript" src="http://files.dongao.com/static/public/js/ntkdl-load.js?isvip=0&userlevel=1&erpparam=abc" charset="utf-8"></script>
     <script>$(function(){
				$(".daxn-item-app").addClass("fixed-item-app-new");
         })</script> -->
    <!-- 小能脚本 end-->
</div>
	<!--底部-->
	<div class="robots_nocontent">
    <div class="footer">
        <div class="wrap">
            <div class="footnav">
                <a href="http://www.dongao.com/company/index.shtml" rel="nofollow" target="_blank">了解东奥</a>&nbsp;|&nbsp;
                <a href="http://www.dongao.com/company/meitiguanzhu.shtml" rel="nofollow" target="_blank">媒体关注</a>&nbsp;|&nbsp;
                <a href="http://www.dongao.com/company/contact.shtml" rel="nofollow" target="_blank">联系我们</a>&nbsp;|&nbsp;
                <a href="http://www.dongao.com/company/link.shtml" rel="nofollow" target="_blank">合作伙伴</a>&nbsp;|&nbsp;
                <a href="http://www.dongao.com/company/job.shtml" rel="nofollow" target="_blank">招聘信息</a>&nbsp;|&nbsp;
                <a href="http://www.dongao.com/company/service.shtml" rel="nofollow" target="_blank">客户服务</a>&nbsp;|&nbsp;
                <a href="http://www.dongao.com/company/copyright.shtml" rel="nofollow" target="_blank">版权声明</a>&nbsp;|&nbsp;
                <a href="http://help.dongao.com/" rel="nofollow" target="_blank">帮助中心</a>&nbsp;|&nbsp;
                <a href="http://www.dongao.com/sitemap.shtml" target="_blank">网站地图</a>
            </div>
            <div class="copyrigyt">
                <a>京ICP备09048014号</a>&nbsp;&nbsp;
                <a href="http://www.dongao.com/help/ICP041119.shtml" rel="nofollow" target="_blank">京ICP证080187号</a>&nbsp;&nbsp;
                <a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010802022124" rel="nofollow" target="_blank">
                    <img src="http://files.dongao.com/static/shouye/shouye_img/batb.png">京公网安备：11010802022124号</a>&nbsp;&nbsp;
                <a href="http://www.dongao.com/help/1462.shtml" rel="nofollow" target="_blank">电信业务审批[2008]字第138号</a>&nbsp;&nbsp;
                <a href="http://www.dongao.com/help/cbfxxk.shtml" rel="nofollow" target="_blank">出版物经营许可证</a>
                <br><a>Copyright©dongao.com Inc. All Rights Reserved</a>
            </div>
            <div class="footer_img">
                <a class="a_anquan" id="_pingansec_bottomimagesmall_brand" href="http://si.trustutn.org/info?sn=245161011024736021982&amp;certType=1" rel="nofollow"><img style="width:83px;height:30px;" src="http://v.trustutn.org/images/cert/brand_bottom_small.jpg"></a>&nbsp;&nbsp;
                <a href="http://www.anquan.org/authenticate/cert/?site=www.dongao.com&amp;at=business" rel="nofollow" target="_blank" class="a_anquan"><img src="http://img.dongao.cn/imgcms/index/hy_83x30.png" alt=""></a>&nbsp;&nbsp;
                <a id="___szfw_logo__" href="http://www.itrust.org.cn/home/index/itrust_certifi/wm/1671745644" rel="nofollow" target="_blank" class="a_anquan"><img src="http://img.dongao.cn/image/footer/sfb.png" border="0" width="83"></a>&nbsp;&nbsp;
                <a id="___szfw_logo___" href="https://credit.szfw.org/CX20160809028815560311.html" target="_blank" rel="nofollow" class="a_anquan"><img src="http://icon.szfw.org/cert.png" border="0" width="83"></a>
                <script type="text/javascript">(function () {
                    document.getElementById('___szfw_logo___').oncontextmenu = function () {
                        return false;
                    }
                })();</script>
            </div>
        </div>
    </div>
</div>
  <!--弹出窗口-->
	<div class="mbtip w360" id="allMessagesId" style="display:none;padding:30px 0 10px;"> 
	  <p id="allResultStrsId"></p>
	  <div class="fullac"><a href="javascript:;" class="btn btn3 okBtn">确定</a></div>
	</div>
	<div class="mbtip w360" id="tips" style="display:none;padding:30px 0 10px;"> 
	  <p id="tipStrs"></p>
	  <div class="fullac"><a href="javascript:;" class="btn btn3 okBtn" id="tipBtn">确定</a>
	  <a href="javascript:;" class="btn btn3 okBtn">取消</a>
	  </div>
	</div>
  <!--弹出窗口-->
<!--弹出框go-->
<div class="tcbg" style="display:none;"></div>
<script>
//弹出窗口js
$(function(){
  $(".toMyCenter").on("click",function(){
    $.ajax({
      url: "/study/u/validateStudyCenter?callback=?",
      dataType: "jsonp",
      timeout: 5000,
      success: function(data, status){
          if(data.status=="true"){
            window.location.href=data.url;	
          }else{
            $(".tc").show();
            $(".tcbg").show();
          }
      },
      error: function(XHR, textStatus, errorThrown){
        $(".tc").show();
        $(".tcbg").show();
      }
    });
  });
	$(".tcTit img").click(function(){
		$(".tc").hide();
		$(".tcbg").hide();
	})
});

</script>

<!--弹出框end-->


<!--底部-->
<script src="/study/uc/js/dongao.js"></script>
<script src="/study/uc/js/daht.js"></script>
<script src="/study/js/ja.js"></script>



</div><script type="text/javascript" id="" src="https://pv.sohu.com/cityjson?ie=utf-8"></script>
<script type="text/javascript" id="">(function(){var b=returnCitySN.cip,a=new Date;a.setTime(a.getTime()+18E5);a="expires\x3d"+a.toGMTString();document.cookie="gtmip\x3d"+b+";"+a+"; path\x3d/"})();</script></body></html>